mkdir db
mkdir db/fipaServices db/registry db/node1 db/node2 db/node3

echo "Deploying the node and the registry..."
icegridnode --Ice.Config=config.fipa --daemon --nochdir
sleep 1
icegridnode --Ice.Config=config.node1 --daemon --nochdir
sleep 1
#icegridnode --Ice.Config=config.node2 --daemon --nochdir
#icegridnode --Ice.Config=config.node3 --daemon --nochdir
icegridadmin --Ice.Config=config.client -e "application add FIPA.xml"
